#!/bin/bash
# 获取当前脚本的绝对路径
SCRIPT_PATH="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/$(basename "${BASH_SOURCE[0]}")"
SHELL_FILE_PATH=$(dirname $SCRIPT_PATH)
# 仓库地址
export GIT_PUSH_URL=git@gitcode.com:sound/java-se-linux.git
  #用户配置
  git config --global user.name "qqgitcode"
  git config --global user.email "qqgitcode@noreply.gitcode.com"
# 导入工具
source $SHELL_FILE_PATH/git-utils.sh

# linux 下载 jdk13
URL=https://download.java.net/openjdk/jdk13/ri/openjdk-13+33_linux-x64_bin.tar.gz
download $URL $DOWNLOAD_DIR/openjdk-13+33_linux-x64_bin.tar.gz

# linux 下载 jdk12
URL=https://download.java.net/openjdk/jdk12/ri/openjdk-12+32_linux-x64_bin.tar.gz
download $URL $DOWNLOAD_DIR/openjdk-12+32_linux-x64_bin.tar.gz

# linux 下载 jdk11
URL=https://download.java.net/openjdk/jdk11.0.0.2/ri/openjdk-11.0.0.2_linux-x64.tar.gz
download $URL $DOWNLOAD_DIR/openjdk-11.0.0.2_linux-x64.tar.gz

# linux 下载 jdk10
URL=https://download.java.net/openjdk/jdk10/ri/jdk-10_linux-x64_bin_ri.tar.gz
download $URL $DOWNLOAD_DIR/jdk-10_linux-x64_bin_ri.tar.gz

# linux 下载 jdk9
URL=https://download.java.net/openjdk/jdk9/ri/jdk-9+181_linux-x64_ri.zip
download $URL $DOWNLOAD_DIR/jdk-9+181_linux-x64_ri.zip

# linux 下载 jdk8
URL=https://download.java.net/openjdk/jdk8u44/ri/openjdk-8u44-linux-x64.tar.gz
download $URL $DOWNLOAD_DIR/openjdk-8u44-linux-x64.tar.gz

# linux 下载 jdk7u75
URL=https://download.java.net/openjdk/jdk7u75/ri/jdk_ri-7u75-b13-linux-x64-18_dec_2014.tar.gz
download $URL $DOWNLOAD_DIR/jdk_ri-7u75-b13-linux-x64-18_dec_2014.tar.gz
# 删除数据
rm -rf $GIT_WORK_DIR





